﻿using Abp.Domain.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.AutoMapper;

namespace MyCompanyName.AbpZeroTemplate.Prm.System
{
    public class RdCenterAppService : AbpZeroTemplateAppServiceBase, IRdCenterAppService
    {
        IRepository<RdCenter, int> rdCenterRepository;


        public RdCenterAppService(IRepository<RdCenter, int> _rdCenterRepository) 
        {
            rdCenterRepository = _rdCenterRepository;
        }

        public List<Dto.GetRdCenterOutPut> GetAll()
        {
            var all = rdCenterRepository.GetAll();
            var model = all.MapTo<List<Dto.GetRdCenterOutPut>>();
            return model;
        }
    }
}
